<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="java.util.List" %><%@ page import="com.pignest.hotel.beans.global.Menu" %><%@ page import="com.pignest.hotel.system.Global" %><%@ page import="com.pignest.framework.util.Utils" %><%
String contextPath = request.getContextPath();
List<Menu> menus = Global.getReportMenus();
if (menus == null || menus.isEmpty()) {
%>
	<jsp:forward page="/modules/global/forbidden.jsp"></jsp:forward>
<%
	return;
}
request.setAttribute("menus", menus);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>系统报表</title>
<script type="text/javascript" src="<%=contextPath%>/scripts/jquery-1.4.2.js"></script>
<style>
body{
	padding:2px;
	margin:0px;
}
a {
	text-decoration:none;
}
.title {
	list-style: none;
	position: relative;
	margin: 0;
	padding: 0;
	color:red;
	font-family:"微软雅黑";
	overflow:visible;
}
.title li{
	height: 30px;
	width:80px;
	display: block;
	padding: 0 10px;
	text-align:center;
	cursor:hand;
	color:#000;
	float:left;
	font-weight:bold;
}
.title li a:hover {
	color:blue;
	font-size:110%;
}
.nav3 {
	background:url("../../images/a_title_bg.gif") repeat-x scroll left -189px transparent;
	height:35px;
	line-height:33px;
	overflow:hidden;
}
.main_bg {
	background:url("../../images/a_body_bg.gif") repeat-x scroll center top transparent;
}
</style>
</head>
<body onload="onLoad()">

<div class="nav3">
	<div style="margin:0px auto;width:960px;">
	<ul class="title" >
	<c:forEach var="menu" items="${menus}">
	    <li><a href="${menu.path}" target="atarget">${menu.name}</a></li>
	</c:forEach>
	</ul>
	</div>
</div>
<div class="main_bg">
	<iframe name="atarget" src="" frameborder="0" width="100%" height="100%" ></iframe>
</div>
<script type="text/javascript">
var height = 0;
function resize() {
	var h = $(document).height();
	if (height == h){
		return;
	}
	h = h-$("#nav3").height();
	$("#main_bg").height(h);
	$("iframe").height(h);
};
function onLoad() {
	var url = "<%=menus.isEmpty()?"":menus.get(0).getUrl()%>";
	if (url) {
		url = "<%=contextPath%>" + url;
	}
	$("iframe").attr("src", url);
	resize();
}
</script>
</body>
</html>